package com.ruoyi.wechat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wechat.mapper.WxFacilityMapper;
import com.ruoyi.wechat.domain.WxFacility;
import com.ruoyi.wechat.service.IWxFacilityService;

/**
 * 服务设施Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class WxFacilityServiceImpl implements IWxFacilityService 
{
    @Autowired
    private WxFacilityMapper wxFacilityMapper;

    /**
     * 查询服务设施
     * 
     * @param facilityId 服务设施主键
     * @return 服务设施
     */
    @Override
    public WxFacility selectWxFacilityByFacilityId(String facilityId)
    {
        return wxFacilityMapper.selectWxFacilityByFacilityId(facilityId);
    }

    /**
     * 查询服务设施列表
     * 
     * @param wxFacility 服务设施
     * @return 服务设施
     */
    @Override
    public List<WxFacility> selectWxFacilityList(WxFacility wxFacility)
    {
        return wxFacilityMapper.selectWxFacilityList(wxFacility);
    }

    /**
     * 新增服务设施
     * 
     * @param wxFacility 服务设施
     * @return 结果
     */
    @Override
    public int insertWxFacility(WxFacility wxFacility)
    {
        return wxFacilityMapper.insertWxFacility(wxFacility);
    }

    /**
     * 修改服务设施
     * 
     * @param wxFacility 服务设施
     * @return 结果
     */
    @Override
    public int updateWxFacility(WxFacility wxFacility)
    {
        return wxFacilityMapper.updateWxFacility(wxFacility);
    }

    /**
     * 批量删除服务设施
     * 
     * @param facilityIds 需要删除的服务设施主键
     * @return 结果
     */
    @Override
    public int deleteWxFacilityByFacilityIds(String[] facilityIds)
    {
        return wxFacilityMapper.deleteWxFacilityByFacilityIds(facilityIds);
    }

    /**
     * 删除服务设施信息
     * 
     * @param facilityId 服务设施主键
     * @return 结果
     */
    @Override
    public int deleteWxFacilityByFacilityId(String facilityId)
    {
        return wxFacilityMapper.deleteWxFacilityByFacilityId(facilityId);
    }
}
